<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>     

<title>特约商户修改/补登</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="<s:url value="/css/a.css"/>" type="text/css"
	rel="stylesheet" />
<link href="<s:url value="/css/index.css"/>" type="text/css"
	rel="stylesheet" />


<script type="text/javascript"
	src="<s:url value="/js/jquery-1.3.2.js" />"></script>
	<script type="text/javascript"
	src="<s:url value="/js/ajaxfileupload.js" />"></script>
		<script type="text/javascript"
	src="<s:url value="/js/jquery.blockUI.js" />"></script>
<script type="text/javascript"
	src="<s:url value="/js/jquery.validate.min.js" />"></script>
<script type="text/javascript"
	src="<s:url value="/js/pwms.validate.js?v13" />"></script>
<script language="javascript" type="text/javascript"
	src="<s:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
<script type='text/javascript' src='<s:url value="/dwr/engine.js"/>'></script>
<script type='text/javascript' src='<s:url value="/dwr/interface/MccQuery.js"/>'></script>
<script type='text/javascript' src='<s:url value="/dwr/interface/AddressQuery.js"/>'></script>
<style type="text/css">
.fieldError {
	color: red;
	text-align: left;
}

.error {
	float: none;
	color: red;
	padding-left: .5em;
	vertical-align: top;
}

table th {
	font-weight: bolder;
	text-align: left;
	background-color: #5599FF;
}
</style>
<script type="text/javascript" language="javaScript">
//选择序列号（ 传入值为table行数）
    function showPosInfoWindow(str){
    
     var ScreenWidth = screen.availWidth ;
     var ScreenHeight = screen.availHeight; 
     var StartX = (ScreenWidth - innerWidth) / 2 ;
     var StartY = (ScreenHeight - innerHeight) / 2 ;
	 var url =  "<%=basePath %>termAgentSn/termSnAgentInit.ct?serNums="+str;
	
	 window.open(url, '终端序列号信息', 'left='+ StartX + ', top='+ StartY + ', Width=' + innerWidth +', height=' + innerHeight + ', resizable=no, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no'); 
	}
	
	var currentTerNum=1;
	$(document).ready(function() {
	//初始化附件按钮
	initAttachment();
		///date
		var mydate=new Date();
		var y=mydate.getFullYear();
		var m=mydate.getMonth()+1; 
		if(m<10){
			m='0'+m;
		}
		var d=mydate.getDate();
		if(d<10){
			d='0'+d;
		}
		$("#curDate").val(y+"-"+m+"-"+d);
		//mcctype
		$("#mccTypes").val($("#mcc").val()); 
		//bankid
		
		$("#banks").val($("#bankId").val());
		//merchant_type
		var a=$("#merKinds").val();
		merkindChange(a);
		//kou type
		changeRate();
		 //mcctype
		 loadSorts(); 
		 $("#commModes").change(function (){
		 	 changeRate();
		 });  
		
		
		$("#merinfoForm").validate({
			debug : true,
			submitHandler : function(form) {
				var terNum=$("#terminalNums").val();
				var terCurrNum=$("input[name=statIndex]").length;
				
				if(terNum!=terCurrNum)	{
					alert("实际添加终端与申请终端数量不符，请重新填写！");
				}else{
					form.submit();
				}
			},
			rules : {
				"merinfo.merKind" : {required : true},  //商户类型
				"merinfo.areaCode" : {required : true}, //所属地区
				"merDetail.terNum" : {required : true,isNumber:true}, //申请终端数量
				"mccTypes" : {required : true}, //行业类别
				"merinfo.mcc" : {required : true},//mcc 
				"merinfo.merName" : {required : true}, //merinfo  name
				"merinfo.engName" : {required : true}, //merinfo  name
				"merinfo.merBrName":{required:true},
				"merinfo.engBrName" : {required : true}, //merinfo  name
				"merinfo.settBackId" : {required : true}, 
				"merinfo.tel" : {required : true,isTel:true},
				"merinfo.insertContact" : {required : true},
				"merinfo.commMode" : {required : true},
				"merDetail.cycleId" : {required : true},
				"merinfo.commRate" : {required : true,isDecimal: function(){
														var min = 0;
														var max = 9.9999;
														var accuracy = 4;
														return [min, max, accuracy];}
									},
				"merinfo.commAmt" : {required : true,isDecimal: function(){
														var min = 0;
														var max = 999999999999;
														var accuracy = 2;
														return [min, max, accuracy];}},
				"merinfo.addr" : {required : true},
				"merinfo.email" : {email : true},
				"merinfo.zipCode":{isZipCode:true},
				"merinfo.accNo":{number:true},
				"merDetail.personalPhone":{required:true,isMobile:true},
				"merDetail.cardNo":{isIdCardNo:true,required:true},
				"merDetail.organizationCode":{required:true,strCode:true},
				"merDetail.taxRegCer":{required:true,strCode:true},
				"merDetail.bankLicense":{strCode:true},
				"merDetail.businessLicences":{required:true,strCode:true},
				"merDetail.personalName":{required:true},
				"termBeanList[0].termName":{required:true},
				"termBeanList[0].termAddress":{required:true},
				"termBeanList[0].serialNum":{required:true},
				"termBeanList[1].termName":{required:true},
				"termBeanList[1].termAddress":{required:true},
				"termBeanList[1].serialNum":{required:true},
				"termBeanList[2].termName":{required:true},
				"termBeanList[2].termAddress":{required:true},
				"termBeanList[2].serialNum":{required:true},
				"termBeanList[3].termName":{required:true},
				"termBeanList[3].termAddress":{required:true},
				"termBeanList[3].serialNum":{required:true},
				"termBeanList[4].termName":{required:true},
				"termBeanList[4].termAddress":{required:true},
				"termBeanList[4].serialNum":{required:true},
				"merinfo.accBack":{required:true},
				"merinfo.accNo":{required:true,isNumber:true},
				"merinfo.contact":{required:true},
				
				"merinfo.merberFee" : {required : true,isDecimal: function(){
														var min = 0;
														var max = 1;
														var accuracy = 4;
														return [min, max, accuracy];}
									},
				"merinfo.merberFeeAmt":{required:true},
						
				"merDetail.cardUrl":{required:true},
				"merDetail.picUrl5":{required:true},
				"merDetail.picUrl6":{required:true},
				"merDetail.picUrl2":{required:true},
				"merDetail.businessLicenseUrl":{required:true},
				"merDetail.placeOfBusinessUrl":{required:true},
				"merDetail.picUrl3":{required:true},
				"merDetail.picUrl4":{required:true},
				"merDetail.picUrl7":{required:true},
				"merDetail.picUrl8":{required:true}
			},
			messages : {
				"merinfo.merKind" : {required : "必选"},  //商户类型
				"merinfo.areaCode" : {required : "必填"}, //所属地区
				"merDetail.terNum" : {required :"必填"}, //申请终端数量
				"mccTypes" : {required : "必选"}, //行业类别
				"merinfo.mcc" : {required : "必选"},//mcc 
				"merinfo.merName" : {required : "必填"}, //merinfo  name
				"merinfo.merBrName":{required:"必填"}, 
				"merinfo.engName" : {required : "必填"}, //merinfo  name
				"merinfo.engBrName":{required:"必填"}, 
				"merinfo.settBackId" : {required : "必选"}, 
				"merinfo.tel" : {required : "必填"},
				"merinfo.insertContact" : {required : "必填"},
				"merinfo.commMode" : {required : "必填"},
				"merDetail.cycleId" : {required : "必填"},
				"merinfo.commRate" : {required : "必填"},
				"merinfo.commAmt" : {required : "必填"},
				"merinfo.addr" : {required : "必填"},
				"merinfo.email" : {email : "邮箱地址不正确"},
				"merinfo.zipCode":{isZipCode:"邮编格式不对"},
				"merinfo.accNo":{number:"必须为整数"},
				"merDetail.personalPhone":{required:"必填"},
				"merDetail.cardNo":{required:"必填"},
				"merDetail.organizationCode":{required:"必填",isABC:"英文或数字"},
				"merDetail.taxRegCer":{required:"必填",isABC:"英文或数字"},
				"merDetail.bankLicense":{isABC:"英文或数字"},
				"merDetail.businessLicences":{required:"必填",isABC:"英文或数字"},
				"merDetail.personalName":{required:"必填"},
				"termBeanList[0].termName":{required:"必填"},
				"termBeanList[0].termAddress":{required:"必填"},
				"termBeanList[0].serialNum":{required:"必填"},
				"termBeanList[1].termName":{required:"必填"},
				"termBeanList[1].termAddress":{required:"必填"},
				"termBeanList[1].serialNum":{required:"必填"},
				"termBeanList[2].termName":{required:"必填"},
				"termBeanList[2].termAddress":{required:"必填"},
				"termBeanList[2].serialNum":{required:"必填"},
				"termBeanList[3].termName":{required:"必填"},
				"termBeanList[3].termAddress":{required:"必填"},
				"termBeanList[3].serialNum":{required:"必填"},
				"termBeanList[4].termName":{required:"必填"},
				"termBeanList[4].termAddress":{required:"必填"},
				"termBeanList[4].serialNum":{required:"必填"},
				"merinfo.accBack":{required:"必填"},
				"merinfo.accNo":{required:"必填"},
				"merinfo.contact":{required:"必填"},
				
				"merinfo.merberFee" : {required : "必填"},
				"merinfo.merberFeeAmt" : {required : "必填"},
					
				"merDetail.cardUrl":{required:"请上传"},
				"merDetail.picUrl5":{required:"请上传"},
				"merDetail.picUrl6":{required:"请上传"},
				"merDetail.picUrl2":{required:"请上传"},
				"merDetail.businessLicenseUrl":{required:"请上传"},
				"merDetail.placeOfBusinessUrl":{required:"请上传"},
				"merDetail.picUrl3":{required:"请上传"},
				"merDetail.picUrl4":{required:"请上传"},
				"merDetail.picUrl7":{required:"请上传"},
				"merDetail.picUrl8":{required:"请上传"}
				
			},errorPlacement: function(error, element) { 
			    if ( element.is(":radio") ) 
			        error.appendTo ( element.parent() ); 
			    else if ( element.is(":checkbox") ) 
			        error.appendTo ( element.parent() ); 
			    else if ( element.is("input") ) 
			        error.appendTo ( element.parent() ); 
			    else if ( element.is("select") ) 
			        error.appendTo ( element.parent() ); 
			    else 
			        error.insertAfter(element); 
			} 

		});
	
		//终端信息
		$("#terminalDiv").click(function(){
				
						var table=$("#istable").get(0);
					    var count=5;
						var lengths=table.rows.length;
						if(lengths > count*4+2){
							return false;
						}
						
				     var a=""
				     +"<tr><td align='right' width='20%'>门店名称：</td><td align='left'><input type='text' maxlength='50' class='queryWidth' name='termBeanList["+parseInt(lengths/4)+"].termName'/><font color='red'>*</font></td><td align='right' width='20%'>终端类型：</td><td align='left'><select class='someWidth' name='termBeanList["+parseInt(lengths/4)+"].tidKind'><option value='01'>移动</option><option value='02'>固定</option></select></td><td> <input type='button' onclick='deleteRows(this)' value='删除' /></td></tr>"
				     +"<tr><td align='right' width='20%'>机器序列号：</td><td align='left' ><input type='text' maxlength='20' id='serialNum"+lengths+"'  class='queryWidth'  name='termBeanList["+parseInt(lengths/4)+"].serialNum' style='background-color: lightgray' readonly='readonly'/><font color='red'>*</font><input type='button'  onclick='showPosInfoWindow("+lengths+")' value='选择'/></td>"
				     +"<td align='right' width='20%'>终端安装地址：</td><td colspan='2' align='left'><input type='text' maxlength='50' class='someWidth' name='termBeanList["+parseInt(lengths/4)+"].termAddress'/><font color='red'>*</font></td></tr>"
				     +"<tr><td align='right' width='20%'>备注：</td><td colspan='4' align='left'><input type='text' maxlength='65'  class='someWidth'  name='termBeanList["+parseInt(lengths/4)+"].termNote'/></td></tr>"
				     +"<tr><td colspan='5'><input name='statIndex'  type='hidden' /></td></tr>"
				     +"";
				     $("#istable").append(a);
				     currentTerNum=currentTerNum+1;
				     return false;
				});
				
				$("#delTr").click(function(){
					var tb=document.getElementById("istable");
				    var lengths=tb.rows.length;
				    
				    if(lengths > 7){
					    tb.deleteRow(lengths-1);
					    tb.deleteRow(lengths-2);
					    tb.deleteRow(lengths-3);
					    tb.deleteRow(lengths-4);
					    tb.deleteRow(lengths-5);
				    }
				    
				    return false;
				});
				
				
			
	}); 
	//终端
	function deleteRows(input){
		var a=input.parentNode.parentNode.rowIndex;
		var table=$("#istable").get(0);
		
		table.deleteRow(a+3);//删除
		table.deleteRow(a+2);
		table.deleteRow(a+1);
		table.deleteRow(a);
		
	}
	//s c  img
	 function ajaxFileUpload(ids){
				var id=$("#"+ids).val();
				if(id=="" ||id==null){
					alert("请选择需要上传的图片~！");
					return;
				}
                $.ajaxFileUpload(
                    {
                 url:'<s:url value="/mer/addMerinfoImg.ct" />',            //需要链接到服务器地址
                 secureuri:false,
                 fileElementId:ids,                         
                 dataType: 'String',
                 success: function (a) { 
               
                 	a=a.replace("<pre>","");
                    a=a.replace("</pre>","");
                    var mess=a.substring(0,4);
                  if(mess=="http"){
                  	 var fonts="#"+ids+"IputFont";    
                      $(fonts).html("上传成功！");
                      
                     var inputs="#"+ids+"Iput";
                      $(inputs).val(a);
                      $(inputs+"Show").attr("disabled","");
                  }else{
                  	 var fonts="#"+ids+"IputFont";    
                      $(fonts).html("文件格式不正确！");
                  }
                 	
                 },
                 error: function (data, status, e) {
                 		 var fonts="#"+ids+"IputFont";    
                      $(fonts).html("上传失败！请检查网络或联系管理员！");
                 }
             }
                    
                );
               
           }
	/////加载
	//清空显示选择提示
	  	function clearSelect(sid) {
			$("#" + sid).empty().append("<option value=''>--请选择--</option>");
		}
		//进行遍历存值
	  	function fillSelect_sort(sid, address) {
	  		
				if (!address || !sid) {
					return;
				}
				var $select = $("#" + sid);
				$select.empty();
				if (address.length != 1) {
					$select.append("<option value=''>--请选择--</option>");
				}
				
				for ( var i = 0; i < address.length; i++) {
					$select.append("<option value='"+address[i].CODE+"'>"
							+ address[i].NAME + "</option>");
					//mccCode
					var one=$("#mccCode").val();//一级
					if(address[i].CODE== one){
						$("#"+sid).find("option[value="+one+"]").attr("selected",true);
					}
					//pro
					var two=$("#proId").val();//proId
					if(address[i].CODE== two){
						$("#"+sid).find("option[value="+two+"]").attr("selected",true);
					}
					//city
					var three=$("#cityId").val();//cityId
					if(address[i].CODE== three){
						$("#"+sid).find("option[value="+three+"]").attr("selected",true);
					}
					
					//bankBranchid
					var five=$("#bankBranchId").val();//bankBranchId
					if(address[i].CODE== five){
						$("#"+sid).find("option[value="+five+"]").attr("selected",true);
					}
				}
		}
		//加载一级类别
		function loadSorts() {
		 	
			clearSelect("mccCodes");
		
			var sortCode = $("#mccTypes").val();
			
			if (!sortCode) {
				return;
			}
			MccQuery.loadMccCode(sortCode, function(sortSmall) {
				fillSelect_sort("mccCodes", sortSmall);
			});
		}
		

	

		//企业类别
		function merkindChange(obj){
			 if(obj.value=="02" || obj=="02"){//个人
			 	$("#bankLin").val("");
			 	$("#taxRegCer").val("");
			 	$("#organCodes").val("");
				$("#bankLin").attr("disabled","true");
				$("#taxRegCer").attr("disabled","true");
				$("#organCodes").attr("disabled","true");
				$("#bankLin").css("background-color","lightgray");
				$("#taxRegCer").css("background-color","lightgray");
				$("#organCodes").css("background-color","lightgray");
				$("#file1Content").hide();
				$("#file3Content").hide();
				//$("#file4Content").hide();
			}else{
				$("#bankLin").removeAttr("style");
				$("#taxRegCer").removeAttr("style");
				$("#organCodes").removeAttr("style");
				$("#bankLin").removeAttr("disabled");
				$("#taxRegCer").removeAttr("disabled");
				$("#organCodes").removeAttr("disabled");
				$("#file1Content").show();
				$("#file3Content").show();
				//$("#file4Content").show();
			}
			$("#merKinds").val(obj.value); 
		}
		//申请终端数量
		function terminalNum(obj){
			if(obj.value>5){
				obj.value=5;
			}
		}
		function checkImgs(str){
		
		var hiddenValue = $("#"+str).val();
		
     var ScreenWidth = screen.availWidth ;
     var ScreenHeight = screen.availHeight; 
     var StartX = (ScreenWidth - innerWidth) / 2 ;
     var StartY = (ScreenHeight - innerHeight) / 2 
     
     var url =  "<%=basePath%>mer/openImg.ct?imgUrl=" +hiddenValue;
                
     window.open(url, '图片预览', 'left='+ StartX + ', top='+ StartY + ', Width=' + innerWidth +', height=' + innerHeight + ', resizable=no, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no');      
      
     
	}
	function closeDiv(){
		 $(document).ready(function () {
		      $.unblockUI();
        });
	}
	
	 //加载二级类别
		 function loadMccCode() {
			var sortCode = $("#mccTypes").val();
			var sortCodeOld = $("#mccTypes").val();
			var array = sortCode.split("-");
			if(array!=null && array.length ==2){
			sortCode = array[0];
			}
			if (!sortCode) {
				return;
			}
			loadCommMode(sortCodeOld);
			MccQuery.loadMccCode(sortCode, function(sortSmall) {
				fillSelect_sort("mccCodes", sortSmall);
			});
		}
		
		//附件预览按钮初始化
		function initAttachment(){
		//法人证件无法参与循环
		   var fileIput = $("#fileIput").val();
		   if(fileIput!=null && fileIput !=''){
	       $("#fileIputShow").attr("disabled","");  	
  		   }
  		
		   for(var i=1;i<=15;i++){
		     var fileTextName= "#file"+i+"Iput";
		     var fileIputX = $(fileTextName).val();
		     if(fileIputX!=null && fileIputX !=''){
		      $(fileTextName+"Show").attr("disabled",""); 
  		     } 
		   }
		
		}
		
		function accBackName(){
			var a= $("#banks  option:selected").text();
			var b= $("#bankBranchs  option:selected").text();
			$("#accBack").val(a+b);
		
		}
		
		
		function valiTaxRegCer(){
			var merKindRadio = $("#merKinds").val();
			var taxRegCer = $("#taxRegCer").val();
			if(merKindRadio=="01"){
			  if(taxRegCer==null || taxRegCer==""){
			  alert("企业商户的税务登记证不能为空");
			  return true;
			  }
			}
		  return false;
		}
		
		function newSubmit(){
			if(valiTaxRegCer()){
			  return false;
			}
			
			var bankBranchs =  $("#bankBranchs").val();
			if(bankBranchs=="00000000"){
			  alert("导入的商户请重新选择开户行");
			return false;
			}
			
			var merinfoForm = $("#merinfoForm");
			merinfoForm.submit();
		
		}
		
		function choiseBank(){
    
	     var ScreenWidth = screen.availWidth ;
	     var ScreenHeight = screen.availHeight; 
	     var StartX = (ScreenWidth - 350) / 2 ;
	     var StartY = (ScreenHeight - 250) / 2 ;
    
		 var url =  "<%=basePath %>mer/openBankMes.ct";
		 var bankMes = window.showModalDialog(url,null,"dialogWidth=350px;dialogHeight=250px;dialogLeft="+StartX+";dialogTop="+StartY+"; ");
		
		if(bankMes==null || bankMes == "" || bankMes == "undefined"){
		 return false;
		}
		
		var array = bankMes.split("-");
		if(array==null || array.length !=2){
		 return false;
		}
		$("#accBack").val(array[0]);
		$("#bankBranchs").val(array[1]);
	
	}
	
	//根据行业类别转换扣率类型 
	function loadCommMode(sortCode){
	if(sortCode=="01-1" || sortCode=="02-1"  || sortCode=="05-1" ||  sortCode=="07-1" || sortCode=="09-1"){
		 $("#commModes").attr("value","1");
		   changeRate();
	 }else if(sortCode=="01-3" || sortCode=="06-3" || sortCode=="08-3"){
	    $("#commModes").attr("value","3");
	     changeRate();
	 }
	 
	}
	//修改商户扣率类型
	function changeRate(){
	  var val=$("#commModes").val();
		 	 if(val==1){
		 	   
		 	    var sortCode = $("#mccTypes").val();
		 	    
		 	    if(sortCode=="01-3" || sortCode=="06-3" || sortCode=="08-3"){
		 	        alert("该行业类别不允许点数");
		 	       $("#commModes").attr("value","3");
		 	       return false;
		 	    }
		 	 
		 	 
		 	 	$("#commAmt").val("0.00");
		 	 	$("#rate").removeAttr("readonly");
		 	 	$("#rate").removeAttr("style");
		 	 	$("#commAmt").attr("readonly","true");
		 	 	$("#commAmt").css("background-color","lightgray");
		 	 }else if(val==3){
		 	    
		 	     var sortCode = $("#mccTypes").val(); 
		 	   if(sortCode=="01-1" || sortCode=="02-1"  || sortCode=="05-1" ||  sortCode=="07-1" || sortCode=="09-1"){
		 	       alert("该行业类别不允许封顶");
		 	       $("#commModes").attr("value","1");
		 	       return false;
		 	      } 
		 	    
		 		 $("#rate").removeAttr("readonly");
		 		 $("#rate").removeAttr("style");
		 		 $("#commAmt").removeAttr("style");
		 	 	$("#commAmt").removeAttr("readonly");
		 	 }
	
	}
		
		
</script>

</head>

<body>
	
		<div class="subpage">
			<s:form id="merinfoForm" action="/mer/updateMerinfo.ct" method="post"  theme="simple" enctype="multipart/form-data">  
				<div class="user_title" >
					<h2 class="headline-inquires">POS收单运营管理平台<br />
	    		 <span class="sub-title">
						<s:hidden name="termapply.merchantNo" value="%{termapply.merchantNo}"/>
			            <s:hidden name="termapply.id" value="%{termapply.id}"/>
						<s:hidden id="mcc" value="%{#request.mccType}"/>
						<s:hidden id="mccCode" value="%{merinfo.mcc}"/>
						<s:hidden id="proId" value="%{#request.strList[0]}"/>
						<s:hidden id="cityId" value="%{#request.strList[1]}"/>
						<s:hidden id="bankId" value="%{#request.strList[2]}"/>
						<s:hidden id="bankBranchId" value="%{merinfo.settBackId}"/>
						<s:hidden id="merKinds" value="%{merinfo.merKind}"/>
						<s:hidden name="merinfo.mid"/>
						<s:hidden name="merinfo.rsv2" value="%{merinfo.rsv2}"/>
						<s:hidden name="merinfo.routeFlag" value="%{merinfo.routeFlag}"/>
						<s:hidden name="merinfo.routeId" value="%{merinfo.routeId}"/>
						<s:hidden name="merDetail.merchant"/>
						<s:hidden name="merDetail.agentID" value="%{merDetail.agentID}"/>
						<s:hidden name="merinfo.joinDate" value="%{merinfo.joinDate}"/>
						<s:hidden name="merinfo.transTimes" value="%{merinfo.transTimes}"/>
						<s:hidden name="merinfo.transTotalAmtDj" value="%{merinfo.transTotalAmtDj}"/>
						<s:hidden name="merinfo.transTotalAmtJj" value="%{merinfo.transTotalAmtJj}"/>
						<s:hidden name="merinfo.cycleTime" value="%{merinfo.cycleTime}"/>
						<s:hidden name="merinfo.merberFlag" value="%{merinfo.merberFlag}"/>
						<s:hidden name="merinfo.merStatus" value="%{merinfo.merStatus}"/>
	    	 	 </span></h2>
				</div>
				<table width="100%" border="1" cellspacing="0" class="table">
					<tr>
						<td colspan="4" align="center">

							<h2 class="headline-inquires">
								特约商户信息完善<br />
								<span class="sub-title"></span>
							</h2>
						</td>
					</tr>
					<tr>
						<td  style="width:150px;text-align: right;">申请人：</td>
						
						<td  style="text-align: left;"> <s:property value="merDetail.operators" /> </td>
						<td style="width:150px;text-align: right">申请日期：</td>
						
						<td style="text-align: left;"> <s:date name="merDetail.dtCreate"/> </td>
					</tr>
					<tr>
						<th colspan="4">审核记录</th>
					</tr>
					<tr>
						<td colspan="6">
						<table width="100%">
							<tr>
								<td width="8%">审核操作</td>
								<td width="8%">审核结论</td>
								<td>审核意见</td>
								<td width="10%">审核人员</td>
								<td width="15%">审核时间</td>
							</tr>
							<s:if test="#request.audtingList!=null">
								<s:iterator value="#request.audtingList" var="au">
									<tr>
										
										<td>
											<s:property value="#au.audit_name"/>
										</td>
										
										<td>
											<s:property value="#au.resultCodeName"/>
										</td>
										
										<td >
											<s:property value="#au.result_detail"/>
										</td>
										<td><s:property value="#au.operators"/></td>
										<td>
											<s:date name="#au.dtCreate"/>
										</td>
									</tr>
								</s:iterator>
							</s:if>
							<s:else>无意见</s:else>
						</table>
					</td>
					</tr>
					<tr>
						<th colspan="4">商户基本信息</th>
					</tr>
					
					<tr>
					  
					<td style="text-align: right">商户类型：</td>
					<td style="text-align: left;"><s:radio  onchange="merkindChange(this)"  name="merinfo.merKind" list="#{'01':'企业单位','02':'个体工商户' }"   ></s:radio> <font color="red">*</font> </td>
					
					<s:if test="#session.session_merchant.roleType==\"03\"||#session.session_merchant.roleType==\"15\" || #session.session_merchant.roleType==\"16\"">
					<td style="text-align: right"></td>
					<td>
					  <s:hidden name="merinfo.belongBranch" value="%{merinfo.belongBranch}" />
					</td>
					</s:if>
					
					<s:else>
					   	<td style="text-align: right">所属机构：</td>
						
						<td style="text-align: left;"> <s:select cssClass="queryWidth" name="merinfo.belongBranch" id="orgCode"
								list="#request.orgList" listKey="org_code" listValue="org_name"/><font color="red">*</font></td>
					
					</s:else>
						   
					   					
					</tr>
					<tr>
						<td style="text-align: right">商户名称：</td>
						
						<td style="text-align: left;"><s:textfield name="merinfo.merName" cssClass="queryWidth" maxLength="50"/><font color="red">*</font> </td>
						<td style="text-align: right">营业名称：</td>
						
						<td style="text-align: left;"><s:textfield name="merinfo.merBrName" cssClass="queryWidth" maxLength="50" /> </td>
					</tr>
					<tr>
						<td style="text-align: right">营业起始时间：</td>
						
						<td style="text-align: left;"> 
						<s:select  name="merinfo.engName" list="#{'000000':'000000','010000':'010000','020000':'020000','030000':'030000','040000':'040000','050000':'050000','060000':'060000','070000':'070000','080000':'080000','090000':'090000','100000':'100000','110000':'110000','120000':'120000','130000':'130000','140000':'140000','150000':'150000','160000':'160000','170000':'170000','180000':'180000','190000':'190000','200000':'200000','210000':'210000','220000':'220000','230000':'230000'}"  cssClass="queryWidth" /> 
						<font color="red">*</font>
						</td>
						<td style="text-align: right">营业终止时间：</td>
						
						<td style="text-align: left;">
						<s:select  name="merinfo.engBrName" list="#{'005959':'005959','015959':'015959','025959':'025959','035959':'035959','045959':'045959','055959':'055959','065959':'065959','075959':'075959','085959':'085959','095959':'095959','105959':'105959','115959':'115959','125959':'125959','135959':'135959','145959':'145959','155959':'155959','165959':'165959','175959':'175959','185959':'185959','195959':'195959','205959':'205959','215959':'215959','225959':'225959','235959':'235959'}"  cssClass="queryWidth" /> 
						
						<font color="red">*</font></td>
					</tr>
					<tr>
						<td style="text-align: right">所属地区：</td>
						
						<td style="text-align: left;"><s:select name="merDetail.areaCode" list="#request.areaList"  listKey="key" listValue="value" cssClass="queryWidth" /> <font color="red">*</font></td>
						
						<td style="text-align: right">申请终端数量：</td>
						
						<td style="text-align: left;"><s:textfield id="terminalNums" name="merDetail.terNum" cssClass="queryWidth" maxLength="1" onkeyup="terminalNum(this)"/> <font color="red">*</font></td>		
						
					</tr>
					<tr>
						<td style="text-align: right">行业类别：</td>
						
						<td style="text-align: left;">
						 
   					  	<s:select id="mccTypes" list="#request.mccList"  onchange="loadMccCode()"   name="mccTypes" headerKey="99" headerValue="--请选择--"  cssClass="queryWidth"></s:select> <font color="red">*</font>
						  </td>
						<td style="text-align: right">mcc码：</td>
						<td style="text-align: left;">
							<!--<s:textfield id="mccCodes" name="merinfo.mcc" cssClass="queryWidth" maxLength="4" readonly="true"/> <font color="red">*</font> -->
   							<select id="mccCodes" name="merinfo.mcc"  class="queryWidth"></select> <font color="red">*</font>
						 </td>
					</tr>
					<tr>
						<td style="text-align: right">结算周期：</td>
						
						<td style="text-align: left;"><s:select name="merDetail.cycleId" list="#request.cycList" listKey="cycleId" listValue="cycleName"  cssClass="queryWidth"></s:select> </td>
						<td style="text-align: right">商户扣率类型：</td>
						
						<td style="text-align: left;"><s:select id="commModes" name="merinfo.commMode" list="#{'1':'点数','3':'封顶' }" cssClass="queryWidth" /> </td>
						
					</tr>
					<tr>
						<td style="text-align: right" >商户扣率：</td>
						
						<td style="text-align: left;"><s:textfield id="rate" name="merinfo.commRate" cssClass="queryWidth" maxLength="6"/><font color="red">*</font><font color="blue">(%)</font> </td>
						
						<td style="text-align: right">封顶手续费金额(元)：</td>
						
						<td style="text-align: left;"><s:textfield id="commAmt" name="merinfo.commAmt" cssClass="queryWidth" maxLength="14"/> <font color="red">*</font></td>
						
					</tr>
					
					
					<s:if test="#merinfo.merberFlag!=\"00\" ">	
					<tr>
					   <td style="text-align: right">折扣类别</td>
					   <td style="text-align: left;">
					     <s:select id="merberFeeType" name="merinfo.merberFeeType" list="#{'1':'点数'}" cssClass="queryWidth" />
					   </td>
					   
						<td style="text-align: right">折扣比率</td>
						<td style="text-align: left;">
						 <s:textfield id="merberFee" name="merinfo.merberFee" cssClass="queryWidth" maxLength="14"/>
						 <font color="blue">(说明:8折填写0.8)</font> <font color="red">*</font> 
						</td>
					</tr>
					
					<tr>
					   <td style="text-align: right">封顶值</td>
					   <td style="text-align: left;">
					     <s:textfield id="merberFeeAmt" name="merinfo.merberFeeAmt" cssClass="queryWidth" maxLength="14"/>
						 <font color="red">*</font> 
					   </td>
					   
						<td style="text-align: right"></td>
						<td style="text-align: left;"></td>
					</tr>
					
				</s:if>
					
	
					<tr>
						<td style="text-align: right">开户银行：</td>
						
						<td style="text-align: left;">
						<s:textfield id="accBack" name="merinfo.accBack" cssClass="someWidth2" maxLength="50" readonly="true"/>
						<font color="red">*</font> 
						<input type="button" onclick="choiseBank();" value="选择">
						</td>
						
						<td style="text-align: right">开户银行代码：</td>
						
						<td style="text-align: left;">
						<s:textfield id="bankBranchs"  name="merinfo.settBackId" readonly="true" cssClass="queryWidth" />
						<font color="red">*</font>
						</td>
						
					</tr>
					
					<tr>
					   	<td style="text-align: right">开户行账户类型：</td>
						<td style="text-align: left;"><s:select id="accType" name="merinfo.accType" list="#{'01':'对公','02':'对私' }" cssClass="queryWidth" /> </td>
						
					    <td style="text-align: right"></td>
						<td style="text-align: left;"></td>
					</tr>
					
					<tr>
					   <td style="text-align: right">开户行账号：</td>
						
						<td style="text-align: left;">
							<s:textfield name="merinfo.accNo"   cssClass="queryWidth" maxLength="30"/><font color="red">*</font>
						 </td>
					
						<td style="text-align: right">开户行账户名：</td>
						
						<td style="text-align: left;">
							<s:textfield name="merinfo.contact" cssClass="queryWidth" maxLength="50"/><font color="red">*</font>
						 </td>
						
					</tr>
					
					<tr>
					   <td style="text-align: right">电话：</td>
						
						<td style="text-align: left;"> <s:textfield name="merinfo.tel" cssClass="queryWidth" maxLength="20"/><font color="red">*</font> </td>
					
						<td style="text-align: right">公司联系人：</td>
						
						<td style="text-align: left;"><s:textfield name="merinfo.insertContact" cssClass="queryWidth" maxLength="10"/><font color="red">*</font> </td>
						
					</tr>
					
					
					
					<tr>
						<td style="text-align: right">法人姓名：</td>
						
						<td style="text-align: left;"><s:textfield name="merDetail.personalName" cssClass="queryWidth" maxLength="15"/> <font color="red">*</font></td>
						<td style="text-align: right">法人手机号 ：</td>
						
						<td style="text-align: left;"><s:textfield name="merDetail.personalPhone"   cssClass="queryWidth" maxLength="11" /> <font color="red">*</font></td>
					</tr>
					<tr>
						<td style="text-align: right">法人证件类型：</td>
						
						<td style="text-align: left;">
							<s:select cssClass="queryWidth" name="merDetail.cardType" id="cardType"
								list="#{'01':'身份证','02':'护照','03':'军官证','04':'驾照','05':'其他' }" />
						</td>
						<td style="text-align: right">法人证件号码 ：</td>
						
						<td style="text-align: left;" ><s:textfield name="merDetail.cardNo"  maxLength="30" cssClass="queryWidth" /><font color="red">*</font> </td>
					</tr>
					<tr>
						
						<td style="text-align: right">营业执照号 ：</td>
						
						<td style="text-align: left;"><s:textfield id="busLicences" name="merDetail.businessLicences" maxLength="35"  cssClass="queryWidth" /><font color="red">*</font> </td>
						<td style="text-align: right">税务登记证：</td>
						
						<td style="text-align: left;"><s:textfield id="taxRegCer" name="merDetail.taxRegCer" maxLength="35" cssClass="queryWidth"/></td>
					</tr>
					<tr>
						
						<td style="text-align: right">组织机构代码 ：</td>
						
						<td style="text-align: left;"><s:textfield id="organCodes" name="merDetail.organizationCode" maxLength="35"  cssClass="queryWidth" /><font color="red">*</font> </td>
						<td style="text-align: right">开户许可证：</td>
						<td style="text-align: left;"><s:textfield id="bankLin" name="merDetail.bankLicense" maxLength="35" cssClass="queryWidth"/> </td>
					</tr>
					<tr>
						<td style="text-align: right">传真：</td>
						
						<td style="text-align: left;"><s:textfield name="merinfo.fax" cssClass="queryWidth" maxLength="20"/> </td>
						<td style="text-align: right">邮件：</td>
						
						<td style="text-align: left;"><s:textfield name="merinfo.email" cssClass="queryWidth" maxLength="40" /> </td>
					</tr>
					<tr>
						<td style="text-align: right">注册地址：</td>
						<td style="text-align: left;" colspan="3"><s:textfield name="merinfo.addr"
								cssStyle="width:95%;" maxlength="30"></s:textfield><font color="red">*</font></td>
					</tr>
					
					<tr>
						<td style="text-align: right">邮编：</td>
							
						<td style="text-align: left;">
						<s:textfield name="merinfo.zipCode" cssClass="queryWidth" maxLength="8"/> 
						</td>
					</tr>
					
					<tr>
						<td style="text-align: right">备注：</td>
						<td style="text-align: left;" colspan="3"><s:textarea onpropertychange="checkLength(this,120);" oninput="checkLength(this,120);" rows="2" id="memos" cssStyle="width:95%;"
								name="merinfo.memo"  /></td>

					</tr>
					<tr>
						<th colspan="4">终端信息</th>
					</tr>
					<tr>
						<td colspan="4">
								<table id="istable" width="100%" cellpadding="0" cellspacing="0" border="0"
									class="table">
					
									<tr>
										<td colspan="5" align="center">
											<h2 class="headline-inquires">
												终端录入<br />
												<span class="sub-title"></span>
											</h2>
					
										</td>
									</tr>
					
					
									<tr>
										<td colspan="5">&nbsp;</td>
									</tr>
									
									<s:iterator value="termBeanList" status="stat" id="ter">
											<tr>
												<td align="right" width="20%">门店名称：</td>
												<td align="left"><input type="text" maxlength="50" class="queryWidth"  name="termBeanList[<s:property value="#stat.index"/>].termName" value="<s:property value="termBeanList[#stat.index].termName"/>"/><font color="red">*</font></td>
												<td align="right" width="20%">终端类型：</td>
												<td align="left"><select  class="queryWidth"  name="termBeanList[<s:property value="#stat.index"/>].tidKind">
																	<s:if test="termBeanList[#stat.index].tidKind ==\"01\"">
																		<option value="01"selected="selected">移动</option>
																		<option value="02">固定</option> 
																	</s:if>
																	<s:else>
																		<option value="01">移动</option>
																		<option value="02" selected="selected">固定</option>
																	</s:else>
																	
																</select></td>
											    <td>
											    	 <s:if test="#stat.index==0"><input type="button" id="terminalDiv" value="添加" /></s:if>
											    	 <s:else><input type='button' onclick='deleteRows(this)' value='删除' /></s:else>
											    
											    </td>
											</tr>
											<tr>
												
											</tr>
											<tr>
												<td align="right" width="20%">机器序列号：</td>
												<td align="left" colspan="1"> 
												    <input type="text" maxlength="20"  class="queryWidth" id="serialNum<s:property value="#stat.index"/>"  name="termBeanList[<s:property value="#stat.index"/>].serialNum" value="<s:property value="termBeanList[#stat.index].serialNum"/>" readonly="readonly" style="background-color: lightgray" /><font color="red">*</font><input type="button" value="选择" onclick="showPosInfoWindow('<s:property value="#stat.index"/>')"/>
													<input name="termBeanList[<s:property value="#stat.index"/>].tid" value="<s:property value="termBeanList[#stat.index].tid"/>" type="hidden"/>
													<input name="statIndex"  type="hidden" />
												</td>
												<td align="right" width="20%">终端安装地址：</td>
												<td align="left" colspan="2"><input type="text" maxlength="50"  class="someWidth"  name="termBeanList[<s:property value="#stat.index"/>].termAddress" value="<s:property value="termBeanList[#stat.index].termAddress"/>" /><font color="red">*</font></td>
												
											</tr>
											<tr>
												<td align="right" width="20%">备注：</td>
												<td align="left" colspan="4"><input type="text" maxlength="65"  class="someWidth"  name="termBeanList[<s:property value="#stat.index"/>].termNote" value="<s:property value="termBeanList[#stat.index].termNote"/>" /></td>
											</tr>
									</s:iterator>
									
									<tr>
										<td colspan="5">&nbsp;</td>
										<%------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --%>
									</tr>
									</table>
				
								
						</td>
					
					
					</tr>
					<tr>
						<th colspan="4">附件信息</th>
					</tr>
					<tr>
						<td style="text-align: right">法人证件：</td>
						
						<td style="text-align: left;" colspan="3" style="text-align: left"> <s:file id="file" name="file" title="附件上传" ></s:file> 
	
        				 <input type="button" value="提交" onclick="ajaxFileUpload('file')"/>
        				<!--  <img src="http://localhost:8080/img/1407658503449.jpeg" /> -->
        				<span><font id="fileIputFont" color="red"></font> </span>
        				<input id="fileIput" type="hidden" name="merDetail.cardUrl" value="<s:property value='merDetail.cardUrl'/>"/>
        				<input  type="button" id="fileIputShow" onclick="checkImgs('fileIput')" value="预览" disabled="disabled"/>
        				<font color="red">*</font>
						 </td>
						
					</tr>
					<tr>
						<td style="text-align: right">合作协议1：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file10" name="file10" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file10')"/>
							 <span><font id="file10IputFont" color="red"></font> </span>
							  <input id="file10Iput" type="hidden" name="merDetail.picUrl5" value="<s:property value='merDetail.picUrl5'/>" />
							 
							  <input id="file10IputShow"  onclick="checkImgs('file10Iput')"  type="button" value="预览" disabled="disabled"/>
							 <font color="red">*</font>
						</td>
					</tr>
					<tr>
						<td style="text-align: right">合作协议2：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file11" name="file11" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file11')"/>
							 <span><font id="file11IputFont" color="red"></font> </span>
							  <input id="file11Iput" type="hidden" name="merDetail.picUrl6" value="<s:property value='merDetail.picUrl6'/>"/>
							
							  <input id="file11IputShow"  onclick="checkImgs('file11Iput')"  type="button" value="预览" disabled="disabled"/>
							 <font color="red">*</font>
						</td>
					</tr>
					<tr>
						<td style="text-align: right">商户信息调查表：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file7" name="file7" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file7')"/>
							 <span><font id="file7IputFont" color="red"></font> </span>
							  <input id="file7Iput" type="hidden" name="merDetail.picUrl2" value="<s:property value="merDetail.picUrl2"/>"/>
							  <input id="file7IputShow"  onclick="checkImgs('file7Iput')"  type="button" value="预览" disabled="disabled"/>
						      <font color="red">*</font>
						</td>
					</tr>
					
					
					<tr>
						<td style="text-align: right">营业执照：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file2" name="file2" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file2')"/>
							 <span><font id="file2IputFont" color="red"></font> </span>
							  <input id="file2Iput" type="hidden" name="merDetail.businessLicenseUrl"  value="<s:property value="merDetail.businessLicenseUrl"/>"/>
							  <input id="file2IputShow"  onclick="checkImgs('file2Iput')"  type="button" value="预览" disabled="disabled"/>
						      <font color="red">*</font>
						</td>
					</tr>
					
					<tr>
						<td style="text-align: right">营业场地图片：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file5" name="file5" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file5')"/> 
							 <span><font id="file5IputFont" color="red"></font> </span>
							  <input id="file5Iput" type="hidden" name="merDetail.placeOfBusinessUrl" value="<s:property value='merDetail.placeOfBusinessUrl'/>"/>
							  <input id="file5IputShow" onclick="checkImgs('file5Iput')"  type="button" value="预览" disabled="disabled"/>
						     <font color="red">*</font>
						</td>
					</tr>
					
					
					
					<tr>
						<td style="text-align: right">门头照：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file8" name="file8" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file8')"/> 
							 <span><font id="file8IputFont" color="red"></font> </span>
							  <input id="file8Iput" type="hidden" name="merDetail.picUrl3" value="<s:property value='merDetail.picUrl3'/>" />
							  <input id="file8IputShow"  onclick="checkImgs('file8Iput')"  type="button" value="预览" disabled="disabled"/>
						     <font color="red">*</font>
						</td>
					</tr>
					<tr>
						<td style="text-align: right">收银台照片：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file9" name="file9" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file9')"/> 
							 <span><font id="file9IputFont" color="red"></font> </span>
							  <input id="file9Iput" type="hidden" name="merDetail.picUrl4" value="<s:property value='merDetail.picUrl4'/>" />
							  <input id="file9IputShow"  type="button" onclick="checkImgs('file9Iput')"  value="预览" disabled="disabled"/>
						     <font color="red">*</font>
						</td>
					</tr>
					
					<tr>
						<td style="text-align: right">手持身份证照：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file12" name="file12" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file12')"/>
							 <span><font id="file12IputFont" color="red"></font> </span>
							  <input id="file12Iput" type="hidden" name="merDetail.picUrl7" value="<s:property value='merDetail.picUrl7'/>" />
							  <input id="file12IputShow"  onclick="checkImgs('<s:property value='merDetail.picUrl7'/>')"  type="button" value="预览" disabled="disabled"/>
						     <font color="red">*</font>
						</td>
					</tr>
					<tr>
						<td style="text-align: right">银行卡正反面照：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file13" name="file13" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file13')"/>
							 <span><font id="file13IputFont" color="red"></font> </span>
							  <input id="file13Iput" type="hidden" name="merDetail.picUrl8" value="<s:property value='merDetail.picUrl8'/>" />
							  <input id="file13IputShow"  onclick="checkImgs('file13Iput')"  type="button" value="预览" disabled="disabled"/>
						     <font color="red">*</font>
						</td>
					</tr>
					<tr id="file1Content">
						<td style="text-align: right">开户行许可证：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file1" name="file1" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file1')"/>
							 <span><font id="file1IputFont" color="red"></font> </span>
							 <input id="file1Iput" type="hidden" name="merDetail.bankLicenseUrl" value="<s:property value='merDetail.bankLicenseUrl'/>"/>
							 <input id="file1IputShow"  type="button" onclick="checkImgs('file1Iput')" value="预览" disabled="disabled"/>
						</td>
						
					</tr>
					
					<tr id="file3Content">
						<td style="text-align: right">组织机构代码：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file3" name="file3" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file3')"/>
							 <span><font id="file3IputFont" color="red"></font> </span>
							  <input id="file3Iput" type="hidden" name="merDetail.orgCodeUrl"  value="<s:property value='merDetail.orgCodeUrl'/>"/>
							  <input id="file3IputShow"  onclick="checkImgs('file3Iput')"  type="button" value="预览" disabled="disabled"/>
						</td>
					</tr>
					<tr id="file4Content">
						<td style="text-align: right">税务登记证：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file4" name="file4" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file4')"/>
							 <span><font id="file4IputFont" color="red"></font> </span>
							  <input id="file4Iput" type="hidden" name="merDetail.taxRegCertUrl" value="<s:property value='merDetail.taxRegCertUrl'/>"/>
							  <input id="file4IputShow"  onclick="checkImgs('file4Iput')"  type="button" value="预览" disabled="disabled"/>
						</td>
					</tr>
					<tr>
						<td style="text-align: right">租赁合同：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file6" name="file6" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file6')"/>
							 <span><font id="file6IputFont" color="red"></font> </span>
							  <input id="file6Iput" type="hidden" name="merDetail.picUrl1" value="<s:property value='merDetail.picUrl1'/>" />
							  <input id="file6IputShow"  onclick="checkImgs('file6Iput')"  type="button" value="预览" disabled="disabled"/>
						</td>
					</tr>
					<tr>
						<td style="text-align: right">备用1：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file14" name="file14" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file14')"/>
							 <span><font id="file14IputFont" color="red"></font> </span>
							  <input id="file14Iput" type="hidden" name="merDetail.picUrl9" value="<s:property value='merDetail.picUrl9'/>" />
							  <input id="file14IputShow"  onclick="checkImgs('file14Iput')"  type="button" value="预览" disabled="disabled"/>
						</td>
					</tr>
					<tr>
						<td style="text-align: right">备用2：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file15" name="file15" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file15')"/>
							 <span><font id="file15IputFont" color="red"></font> </span>
							  <input id="file15Iput" type="hidden" name="merDetail.picUrl10" value="<s:property value='merDetail.picUrl10'/>" />
							  <input id="file15IputShow"  onclick="checkImgs('file15Iput')"  type="button" value="预览" disabled="disabled"/>
						</td>
					</tr>
					<tr>
						<td colspan="4" align="center"><span style="color: red"><s:actionerror /></span>
							<span style="color: red;"><s:actionmessage /></span > <span style="color: red;"><s:fielderror
									cssClass="fieldError" /></span>
							<span id="otherError"></span>
						</td>
					</tr>
					
					<tr>
						<td align="center" colspan="4">
						        <input type="button" value="保  存" onclick="newSubmit()"/>
						           &nbsp;&nbsp; 
								<input type="reset" value="取  消"/>
						</td>
					</tr>
					
					
					<tr height="30">
					</tr>
					
				</table>

			</s:form>
		</div>
	<s:if test="#request.msg !=null">
		<script language="javascript">
			alert("${request.msg}");
		</script>
	</s:if>
</body>
</html>
